+2009-01-18 Sven Neumann <sven@gimp.org>
+
+ * babl/babl-component.h
+ * babl/babl-conversion.h
+ * babl/babl-extension.h
+ * babl/babl-format.h
+ * babl/babl-model.h
+ * babl/babl-type.h: allow to disable the defines that were added
+ for backward compatibility by definining BABL_DISABLE_DEPRECATED.
+
+ * babl/babl-image.h: removed trailing whitespace.
+
2009-01-17 Martin Nordholts <martinn@svn.gnome.org>
Add #define babl_foo babl_foo_from_name macros, that should fix
*/
#ifndef _BABL_H
-#error this file is only to be included by babl.h
+#error this file is only to be included by babl.h
#endif
* NULL);
*/
+#ifndef BABL_DISABLE_DEPRECATED
+
#define babl_component babl_component_from_name
+#endif /* BABL_DISABLE_DEPRECATED */
+
+
typedef struct
{
BablInstance instance;
*/
#ifndef _BABL_H
-#error this file is only to be included by babl.h
+#error this file is only to be included by babl.h
#endif
/****************************************************************/
* NULL);
*/
+#ifndef BABL_DISABLE_DEPRECATED
+
#define babl_conversion babl_conversion_from_name
+#endif /* BABL_DISABLE_DEPRECATED */
+
+
/* Type and Format */
typedef long (*BablFuncLinear) (char *src,
char *dst,
*/
#ifndef _BABL_H
-#error this file is only to be included by babl.h
+#error this file is only to be included by babl.h
#endif
/****************************************************************/
* BablExtension objects are only used internally in babl.
*/
+#ifndef BABL_DISABLE_DEPRECATED
+
#define babl_extension babl_extension_from_name
+#endif /* BABL_DISABLE_DEPRECATED */
+
+
typedef struct
{
BablInstance instance; /* path to .so / .dll is stored in instance name */
* name is used.
*/
+#ifndef BABL_DISABLE_DEPRECATED
+
#define babl_format babl_format_from_name
+#endif /* BABL_DISABLE_DEPRECATED */
+
+
typedef struct
{
BablInstance instance;
*/
#ifndef _BABL_H
-#error this file is only to be included by babl.h
+#error this file is only to be included by babl.h
#endif
/****************************************************************/
* passed to babl_process, two different babl_process() functions will be
* needed for this since the polymorphism cannot be trusted to work on linear
* buffers that originate outside babl's control.
- *
+ *
* Babl * babl_image_new (BablComponent *component1,
* void *data,
* int pitch,
*/
#ifndef _BABL_H
-#error this file is only to be included by babl.h
+#error this file is only to be included by babl.h
#endif
/****************************************************************/
*
*/
+#ifndef BABL_DISABLE_DEPRECATED
+
#define babl_model babl_model_from_name
+#endif /* BABL_DISABLE_DEPRECATED */
+
+
typedef struct
{
BablInstance instance;
BablList *from_list;
int components;
BablComponent **component;
- BablType **type; /*< must be doubles, used here for convenience in code */
+ BablType **type; /*< must be doubles,
+ used here for convenience in code */
} BablModel;
*/
#ifndef _BABL_H
-#error this file is only to be included by babl.h
+#error this file is only to be included by babl.h
#endif
/****************************************************************/
* NULL);
*/
+#ifndef BABL_DISABLE_DEPRECATED
+
#define babl_type babl_type_from_name
+#endif /* BABL_DISABLE_DEPRECATED */
+
+
typedef struct
{
BablInstance instance;